<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/4/16 0016
  Time: 8:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <link rel="stylesheet" href="<c:url value="/webjars/bootstrap/4.6.0/css/bootstrap.min.css"/> ">
    <link href="<c:url value="/static/css/manager.css"/> " rel="stylesheet">
    <link rel="stylesheet" href="<c:url value="https://cdn.bootcdn.net/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"/> ">
<%--    <link rel="shortcut icon" href="https://jx2.22wiki.top/favicon.ico">--%>
<%--    <link rel="shortcut icon" href="https://cdn.jsdelivr.net/gh/bzliwei/cdn@master//img/20210702122812.ico" />--%>
    <link rel="shortcut icon" href="<c:url value="/favicon.ico" />" />
    <script src="<c:url value="/webjars/jquery/3.5.1/dist/jquery.min.js"/> "></script>
    <script src="<c:url value="/webjars/bootstrap/4.6.0/js/bootstrap.min.js"/> "></script>
    <script src="<c:url value="/static/js/manager.js"/>"></script>
    <title>用户登录</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="社区管理系统">
    <meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
    <meta name="generator" content="Jekyll v3.8.5">
    <style>
        /*body {*/
        /*    background-image: url("https://res.abeim.cn/api-bing_img");*/
        /*}*/
        .bd-placeholder-img {
            font-size: 1.125rem;
            text-anchor: middle;
        }

        @media (min-width: 768px) {
            .bd-placeholder-img-lg {
                font-size: 3.5rem;
            }
        }
    </style>

</head>

<body background="<c:url value="https://cdn.jsdelivr.net/gh/bzliwei/cdn@master//img/20210624140233.jpg"/> " style="background-size: cover">
<form method="post" action="<c:url value="/checkLogin" />" class="form-signin needs-validation" novalidate>
    <%--    川信头像：https://sc02.alicdn.com/kf/U2f3e628589754b1d97c60978a1938f51U.jpg--%>
    <div id="loginbox">
    <div class="text-center mb-4">
        <h1 class="h3 mb-3 font-weight-normal">用户登录</h1>
        <p>社区管理登录平台</p>
    </div>
    <div class="form-label-group">
        <i class="fa fa-user" aria-hidden="true">账号</i><input type="text" id="loginId" name="loginId" class="form-control" placeholder="用户名"  pattern="(\w|\W|\d){4,16}" required autofocus>
        <div class="valid-feedback">
            用户名有效
        </div>
        <div class="invalid-feedback">
            用户名验证失败
        </div>
    </div>
    <br>
    <div class="form-label-group">
        <i class="fa fa-unlock-alt" aria-hidden="true">密码</i><input type="password" id="pwd" name="pwd" class="form-control" placeholder="密码" required="" pattern=".{4,20}">
        <div class="valid-feedback">
            密码有效
        </div>
        <div class="invalid-feedback">
            密码验证失败
        </div>

    </div>
    <c:if test="${sessionScope.loginMsg != null}">
        <div class="alert alert-warning alert-dismissible fade show" role="alert">
            <strong>注意!</strong>
            <c:out value="${sessionScope.loginMsg}" />
            <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                <span aria-hidden="true">&times;</span>
            </button>
        </div>
    </c:if>
    <c:remove var="loginMsg" scope="session"/>
        <p style="text-align: center">请选择登录方式<i class="fa fa-hand-o-down" aria-hidden="true"></i></p>
        <div class="text-center mb-4">
        <div class="form-check form-check-inline">
            <input class="form-check-input" type="radio" name="usertype" id="inlineRadio1" value="isadmin" checked>
            <label class="form-check-label" for="inlineRadio1">管理员</label>
        </div>
        <div class="form-check form-check-inline">
            <input class="form-check-input" type="radio" name="usertype" id="inlineRadio2" value="isuser">
            <label class="form-check-label" for="inlineRadio2">小区住户</label>
        </div>
        </div>
        <button class="btn btn-lg btn-primary btn-block" type="submit"><i class="fa fa-sign-in" aria-hidden="true">登录</i></button>
    </div>
    <footer class="mt-5 mb-3 text-muted text-center">©2021 社区管理系统</footer>
</form>


</body>
</html>